<%@page import="com.itwill.ecom.product.ProductBeans"%>
<%@page import="com.itwill.ecom.product.ProductServiceImpl"%>
<%@page import="com.itwill.ecom.product.ProductService"%>
<%@page import="org.springframework.web.context.support.WebApplicationContextUtils"%>
<%@page import="org.springframework.web.context.WebApplicationContext"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  
<%
	WebApplicationContext webContext=WebApplicationContextUtils.getWebApplicationContext(application);
	ProductService productService = (ProductService)webContext.getBean("productService");
	
	int productNo = Integer.parseInt(request.getParameter("productno"));
	ProductBeans detail = productService.getProductByNo(productNo);
		
%>
[{
"product_no" : "<%= detail.getProduct_no() %>",
"product_name" : "<%= detail.getProduct_name() %>",
"product_category" : "<%= detail.getProduct_category() %>",
"product_company" : "<%= detail.getProduct_company() %>",
"product_price" : "<%= detail.getProduct_price() %>",
"product_count" : "<%= detail.getProduct_count() %>",
"product_detail" : "<%= detail.getProduct_detail() %>",
"product_image0" : "<%= detail.getProduct_image0() %>",
"product_image1" : "<%= detail.getProduct_image1() %>",
"product_image2" : "<%= detail.getProduct_image2() %>",
"product_image3" : "<%= detail.getProduct_image3() %>",
"product_image4" : "<%= detail.getProduct_image4() %>",
"product_image5" : "<%= detail.getProduct_image5() %>",
"product_image6" : "<%= detail.getProduct_image6() %>",
"product_image7" : "<%= detail.getProduct_image7() %>",
"product_image8" : "<%= detail.getProduct_image8() %>",
"product_image9" : "<%= detail.getProduct_image9() %>"
}]

